// Copyright 2011 The OnTheQuarter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package server

type Quarter string // "2011q3"

type Person struct {
	ShortName  string
	Email      string
	SignupDate int64 // seconds since epoch
}

type Result struct {
	Text  string
	Score int // Between 0 and 100.
}

type Objective struct {
	Text     string
	Score    int
	Result   []Result
}

// OKRs is a flattened version of []Objective. Order is important.
type OKRs struct {
	Text    []string
	Score   []int
	IsChild []bool // IsChild true makes this a child of the first earlier parent.
}
